<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html>
<head>
	<title>用户表</title>
</head>
<body style="font-family: 楷体">
  <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="/appstore/Public/assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/appstore/Public/assets/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="/appstore/Public/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/appstore/Public/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">AppStore</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="../login/login">登录</a></li>
            <!-- <li><a href="#">注册</a></li> -->
            <!-- <li><a href="#">Help</a></li> -->
          </ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="http://localhost/appstore/admin.php/user/userlist">用户管理<span class="sr-only">(current)</span></a></li>
            <li><a href="http://localhost/appstore/admin.php/app/index">APP管理</a></li>
            <li><a href="http://localhost/appstore/admin.php/apptype/index">APP类型管理</a></li>
            <!-- <li><a href="#">Export</a></li> -->
          </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> 
  <h1 style="text-align: center; font-weight: bolder;">用户信息维护</h1>
<form action="<?php echo U('admin.php/user/search');?>" method="post" class="form-horizontal" enctype="multipart/form-data">  
  <table class="table">
    <tr>
      <th><input type="text" name="search_key" class="form-control"></input></th>
      <th><input type="submit" class="btn btn-primary" value="搜索"></input></th>
      <th><p style="text-align:right; font-size: 20px;"><a href="form.html">添加新用户</a></p></th>
    </tr>
  </table>
</form>
	<table border="1">
		<tr>
  		<th>头像</th>
  		<th>用户名</th>
  		<th>真实姓名</th>
  		<th>邮箱</th>
  		<th>电话</th>
  		<th>审核信息</th>
  		<th>明星作者</th>
  		<th>首页推荐</th>
  		<th>操作</th>
  	</tr>
  	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
      <td><img src="/appstore/Public/Uploads/<?php echo ($vo["zhr_photo"]); ?>" width="100px"></td>
	    <td><?php echo ($vo["zhr_username"]); ?></td>
	    <td><?php echo ($vo["zhr_realname"]); ?></td>
	    <td><?php echo ($vo["zhr_email"]); ?></td>
	    <td><?php echo ($vo["zhr_tele"]); ?></td>
	    <td><?php echo ($vo["zhr_veryfyinfo"]); ?></td>
	    <td><?php echo ($vo["zhr_isstar"]); ?></td>
	    <td><?php echo ($vo["zhr_isfirst"]); ?></td>
	    <td>
          <!-- 传参 -->
          <a href="<?php echo U('admin.php/user/view',array('id'=>$vo['zhr_id']));?>">查看</a><br>   
          <a href="<?php echo U('admin.php/user/mod',array('id'=>$vo['zhr_id']));?>">修改</a><br>
          <a href="javascript:if(confirm('确认删除?')) location='<?php echo U('admin.php/user/delete',array('id'=>$vo['zhr_id']));?>'">删除</a><br>
	        <a href='#'>取消明星作者</a><br><a href='#'>设置首页推荐</a><br>
	        <a href='#'>禁用</a><br>
	    </td>
     </tr><?php endforeach; endif; else: echo "" ;endif; ?>
   </table>
   <div class="text-center"><?php echo ($page); ?></div>
             </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="/appstore/Public/assets/js/bootstrap.min.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="/appstore/Public/assets/js/vendor/holder.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="/appstore/Public/assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
 // 包含尾部模版foter
</body>
</html>